package org.shop.dao;

import java.util.List;
import java.util.Map;

import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.Merchant;

public interface MerchantMapper extends BaseDaoMapper<Merchant, Long>{
    
	/**
	 * 获取所有店铺
	 * @return
	 */
	public List<Map<String, Object>> getShopList(Map<String, Object> params);
    /**
     * 获取正在审核的店铺
     * @param paramMap
     * @return
     */
    public List<Map<String, Object>> getCheckOfShopList(Map<String, Object> paramMap);
    /**
     * 获取正在审核的店铺条数
     * @param dataMap
     * @return
     */
    public Integer getCheckOfShopCount(Map<String, Object> paramMap);
    
    /**
	 * 获取所有店铺列表
	 * @return
	 */
	public List<Map<String, Object>> getAllShopList(Map<String, Object> params);
	/**
	 * 获取所有店铺数量
	 * @return
	 */
	public int getAllShopCount(Map<String, Object> params);
	
	/**
	 * 获取所有的有效的店铺信息
	 * @return
	 */
	public List<Merchant> getAllMerchantInfo();
	
	/**
	 * 多条件获取店铺信息
	 * @param paramMap
	 * @return
	 */
	public Merchant getMerchantInfo(Map<String, Object> paramMap);
	
	/**
	 * 判断店铺名是否存在
	 * @param merchantName
	 * @return
	 */
	public int verifyMerchantName(Map<String, Object> paramMap);
}